
const webpack = require('webpack');
const path = require('path');

module.exports = {
    entry: {
        bizark: ['iview', 'vue', 'vue-router', 'vuex']
    },
    output: {
        filename: '[name].dll.js',
        path: path.join(__dirname, './public/dll'),
        // libraryTarget: 'var',
        library: '[name]_dll_[chunkhash]'
    },
    plugins: [
        new webpack.DllPlugin({
            path: path.join(__dirname, './public/dll', 'manifest.json'),
            name: '[name]_dll_[chunkhash]'
        })
    ]
};